﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LS_BSXJKModeWebForm.aspx.cs" Inherits="Anke.SHManage.Web.Reports.LS_BSXJKModeWebForm" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>病史小讲课流水表</title>
    <script src="../Content/EasyUI/jquery.js"></script>
    <script src="../Content/EasyUI/jquery.easyui.js"></script>
    <script src="../Content/EasyUI/locale/easyui-lang-zh_CN.js"></script>
    <link href="../Content/EasyUI/themes/icon.css" rel="stylesheet" />
    <link href="../Content/EasyUI/themes/default/easyui.css" rel="stylesheet" />
    <script src="../Scripts/jquery.AnkeExtend.js"></script>
    <script type="text/javascript">
        //页面加载
        $(document).ready(function () {
            DisableBackspace();
            fillCombobox();
        });
        function fillCombobox() {

            //取所属分中心的下拉框的值
            $("#Center").combobox({
                url: "../BB/AllDictionary/GetCenterName",
                valueField: 'ID',
                textField: 'Name',
                editable: false,
                multiple: true,
                prompt: '--请选择--',
                onSelect: function (rec) {
                    var ids = $('#Center').combobox('getValues');
                    //根据分中心取分站
                    $("#Station").combobox({
                        url: "../BB/AllDictionary/GetSationName?centerID=" + ids,
                        method: 'POST',
                        valueField: 'ID',
                        textField: 'Name',
                        multiple: true,
                        editable: false,
                        onSelect: function () {
                            $('#Station').combobox('getValues')
                        },
                        onUnselect: function () {
                            $('#Station').combobox('getValues')
                        }
                    });
                    $("#Station").combobox('clear');
                },
                onUnselect: function (rec) {
                    var ids = $('#Center').combobox('getValues');
                    //根据分中心取分站
                    $("#Station").combobox({
                        url: "../BB/AllDictionary/GetSationName?centerID=" + ids,
                        method: 'POST',
                        valueField: 'ID',
                        textField: 'Name',
                        multiple: true,
                        editable: false
                        //onSelect: function () {
                        //    //$('#Station').combobox('getValues')
                        //},
                        //onUnselect: function () {
                        //    $('#Station').combobox('getValues')
                        //}
                    });
                    // $("#Station").combobox('setValues', '');
                    $("#Station").combobox('clear');
                },
            });

            var centers = $('#Center').combobox('getValues');
            $("#Station").combobox({
                url: "../BB/AllDictionary/GetSationName?centerID=" + centers,
                method: 'POST',
                valueField: 'ID',
                textField: 'Name',
                multiple: true,
                editable: false,
                onSelect: function () {
                    $('#Station').combobox('getValues')
                },
                onUnselect: function () {
                    $('#Station').combobox('getValues')
                }
            });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <table>
            <tr>
                <td>查询时间：</td>
                <td>
                    <asp:TextBox ID="StartDate" class="easyui-datetimebox" Style="width: 150px" runat="server" editable="false"></asp:TextBox>
                </td>
                <td style="text-align: center">至</td>
                <td>
                    <asp:TextBox ID="EndDate" class="easyui-datetimebox" Style="width: 150px" runat="server" editable="false"></asp:TextBox>
                </td>
                <td style="text-align: right">分中心：</td>
                <td>
                    <asp:TextBox ID="Center" class="easyui-combobox" Style="width: 140px" runat="server"></asp:TextBox>
                    <%--<asp:DropDownList ID="DropDownList_Center" runat="server" Width="150px" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_Center_SelectedIndexChanged"></asp:DropDownList>--%>
                </td>
                <td style="text-align: right">分站：</td>
                <td>
                    <asp:TextBox ID="Station" class="easyui-combobox" Style="width: 140px" runat="server"></asp:TextBox>
                    <%--<asp:DropDownList ID="DropDownList_Station" runat="server" Width="150px" AutoPostBack="True"></asp:DropDownList>--%>
                </td>
                <td style="text-align: right">工号：</td>
                <td>
                    <asp:TextBox ID="WorkID" class="easyui-textbox" Style="width: 130px" runat="server"></asp:TextBox>
                </td>
                <td style="text-align: right">姓名：</td>
                <td>
                    <asp:TextBox ID="Name" class="easyui-textbox" Style="width: 130px" runat="server"></asp:TextBox>
                </td>
                </tr>
            <tr>
                <td style="text-align: right">通知参加：</td>
                <td>
                   <%-- <asp:TextBox ID="IsNotice" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>--%>
                     <asp:HiddenField ID="HiddenForIsNotice" runat="server" />
                    <select id="IsNotice" class="easyui-combobox" style="width: 150px" data-options="editable:false" runat="server">
                        <option value="">--请选择--</option>
                        <option value="true">是</option>
                        <option value="false">否</option>
                    </select>
                </td>
                <td style="text-align: right">实际参加情况：</td>
                <td>
                   <%-- <asp:TextBox ID="IsNotice" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>--%>
                     <asp:HiddenField ID="HiddenFieldForActualAttend" runat="server" />
                    <select id="ActualAttend" class="easyui-combobox" style="width: 150px" data-options="editable:false" runat="server">
                        <option value="">--请选择--</option>
                        <option value="已参加">已参加</option>
                        <option value="缺席参加">缺席参加</option>
                        <option value="补参加">补参加</option>
                    </select>
                </td>
                 <td style="text-align: right">补通知参加：</td>
                <td>
                   <%-- <asp:TextBox ID="IsNotice" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>--%>
                     <asp:HiddenField ID="HiddenFieldForFillNotice" runat="server" />
                    <select id="IsFillNotice" class="easyui-combobox" style="width: 140px" data-options="editable:false" runat="server">
                        <option value="">--请选择--</option>
                        <option value="true">是</option>
                        <option value="false">否</option>
                    </select>
                </td>
                <td style="text-align: right">补实际参加情况：</td>
                <td>
                   <%-- <asp:TextBox ID="IsNotice" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>--%>
                     <asp:HiddenField ID="HiddenFieldForFillActualAttend" runat="server" />
                    <select id="FillActualAttend" class="easyui-combobox" style="width: 140px" data-options="editable:false" runat="server">
                        <option value="">--请选择--</option>                  
                        <option value="缺席参加">缺席参加</option>
                        <option value="补参加">补参加</option>
                    </select>
                </td>
                   <td style="text-align: right">再次补通知参加：</td>
                <td>
                   <%-- <asp:TextBox ID="IsNotice" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>--%>
                     <asp:HiddenField ID="HiddenFieldForFillAgain" runat="server" />
                    <select id="FillAgain" class="easyui-combobox" style="width: 130px" data-options="editable:false" runat="server">
                        <option value="">--请选择--</option>
                        <option value="true">是</option>
                        <option value="false">否</option>
                    </select>
                </td>
                <td style="text-align: right">再次补实际参加情况：</td>
                <td>
                   <%-- <asp:TextBox ID="IsNotice" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>--%>
                     <asp:HiddenField ID="HiddenFieldForFillAgainAttend" runat="server" />
                    <select id="FillAgainAttend" class="easyui-combobox" style="width: 130px" data-options="editable:false" runat="server">
                        <option value="">--请选择--</option>                    
                        <option value="缺席参加">缺席参加</option>
                        <option value="补参加">补参加</option>
                    </select>
                </td>
                <td>
                    <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" />
                </td>
            </tr>
        </table>
        <div style="background-color: #fafafa; border-left: 1px solid scrollbar; overflow: hidden; height: 100%;">
            <rsweb:ReportViewer ID="ReportViewer1" runat="server" Width="100%" Height="100%"  SizeToReportContent="True">
            </rsweb:ReportViewer>
        </div>
    </form>
</body>
</html>

